import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'lib-flexible/flexible.js'
import axios from 'axios'
import {get,post} from './http'

import '../src/styles/reser.css'
// 赖加载
import { Lazyload } from 'vant';
Vue.use(Lazyload);
// import {get} from './http'
// import {post} from './http'
 Vue.prototype.$get = get
 Vue.prototype.$post = post
Vue.config.productionTip = false


// http() {
//   this.$get(API.GET_CART_INDEX, {
//     token: this.$store.state.token,
//   }).then((res) => {
//     if (res.errmsg == "成功") {
    
//         this.$store.commit("shoppingAmount", res.data.cartList.length);
//         console.log("走了生命周期"+this.$store.state.shoppingamount);
      
    
//     }
//   });
// },


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
